package com.io;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FileInputStreamDemo01 {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream(new File(
                "D:\\dev\\1\\fout.txt"));

        byte[] buff=new byte[1024];
        int len=-1;
        while((len=fileInputStream.read(buff))>0) {
            System.out.println(new String(buff,0,len));
        }

    }
}
